using System.Collections.Generic;
using UnityEditor;
using UnityEngine;

public static class EditorUtil
{
    /// <summary>
    /// 获得当前选中的 Asset 的完整路径，路径的起点是 Asset 文件夹。
    /// </summary>
    /// <returns></returns>
    public static string[] GetSelectedAssetRealPaths()
    {
        List<string> ret = new();
        foreach (Object obj in Selection.GetFiltered<Object>(SelectionMode.Assets | SelectionMode.ExcludePrefab))
        {
            string path = AssetDatabase.GetAssetPath(obj);
            ret.Add(path);
        }
        return ret.ToArray();
    }

};